import $http from '@/common/api/request.js'

// 获取平台司机列表
export function pagePlatformDriver(data) {
  return $http.get('/vehicle/portal/driver/pagePlatformDriver', data)
}

// 获取全部公司信息
export function getAutoCompanyInfoAll() {
  return $http.get('/user/portal/user/company/info')
}

// 分页获取司机评价
export function pageDriverPraise(driverId, data) {
  return $http.get('/order/orderPraiseTag/driver/' + driverId, data)
}

// 查询司机信息
export function getDriverInfo(userId, data) {
  return $http.get('/vehicle/driver/' + userId, data)
}

// 修改司机信息
export function updateDriverInfo(userId, data) {
  return $http.post('/vehicle/driver/update/' + userId, data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

// 设置司机审核状态
export function updateExamineStatus(data) {
  return $http.post('/vehicle/driver/updateExamineStatus', data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

// 添加司机V2
export function addDriverV2(data) {
  return $http.post('/user/user/v2/addDriverUser', data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
